<div id="content">
<div style="margin-right:20px;">
    <div class="row" style="min-height: 800px">
        <div class="col-sm-8 margin-bottom-10">
            <h5 class="accept_task clearfix">
                <i class="fa fa-tree"></i><strong>我加入的公司</strong>
                    <b class="btn btn-primary this_add pull-right">立即创建</b>
            </h5>
            <table class="table table-hover table-bordered bg-color-white"
                style="margin: 0">
                <thead>
                <tr>
                    <th>公司名称</th>
                    <th>公司类型</th>
                    <th>公司描述</th>
                    <th>管理员</th>
                    <th style="width: 20%; text-align: center">退出</th>
                </tr>
                </thead>
                <tbody id="add_num">
                <tr ng-repeat="comp in joincomps ">

                    <td><a href='' ng-click="tofirst(comp.id,comp.name,comp.company_type_id)">{{comp.name}}</a></td>  

                    <!-- <td>{{comp.company_type_id | company_type}}</td>   -->
                    <td>{{comp.company_type_id == 1 ? "农业合作社" : (comp.company_type_id == 3 ? "粮库" : (comp.company_type_id == 4 ? "油库" : ""))}}</td>
                    <td>
                        <span>{{comp.description}}</span>
                    </td>
                    <td>{{comp.admin_name}}</td>
                    <td class="text-align-center"><button class="btn btn-primary pad1-12"  ng-click="quit_company(comp.company_id)">退出</button></td>
                </tr>
                </tbody>
            </table>
            <div class="dt-toolbar-footer" style="border: 1px solid #ccc">
                <tm-pagination conf="paginationConf"></tm-pagination>
            </div>
        </div>
    </div>
</div>


<div class="modal fade" id="posttask" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    ×
                </button>
                <h4 class="modal-title">信息</h4>
            </div>
            <div class="modal-body">
                <p>
                    您确实要退出该公司吗？
                </p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    取消
                </button>
                <button type="button" class="btn btn-primary" ng-click="quit_company_dialog()">
                    确认
                </button>
            </div>
        </div>
    </div><!-- /.modal-content -->
</div>
</div>
